package org.dei.perla.sys.device.fpc.dspic.datastructures;

import org.dei.perla.utils.dataconverter.annotations.SimpleField;
import org.dei.perla.utils.dataconverter.annotations.StructInfo;
import org.dei.perla.utils.dataconverter.enums.Endianness;
import org.dei.perla.utils.dataconverter.enums.Sign;

@StructInfo(endianness = Endianness.LITTLE_ENDIAN)
public class ED {

	@SimpleField(size = 2, sign = Sign.UNSIGNED)
	private int flags;

	@SimpleField(size = 8, sign = Sign.UNSIGNED)
	private long timestamp;

	@SimpleField(size = 2, sign = Sign.UNSIGNED)
	private int samples;

	@SimpleField(size = 4, sign = Sign.UNSIGNED)
	private int magnitudeX;

	@SimpleField(size = 4, sign = Sign.UNSIGNED)
	private int magnitudeY;

	@SimpleField(size = 4, sign = Sign.UNSIGNED)
	private int magnitudeZ;

	@SimpleField(size = 2, sign = Sign.SIGNED)
	private int peakX;

	@SimpleField(size = 2, sign = Sign.SIGNED)
	private int peakY;

	@SimpleField(size = 2, sign = Sign.SIGNED)
	private int peakZ;

	@SimpleField(size = 2, sign = Sign.UNSIGNED)
	private int noiseX;

	@SimpleField(size = 2, sign = Sign.UNSIGNED)
	private int noiseY;

	@SimpleField(size = 2, sign = Sign.UNSIGNED)
	private int noiseZ;

	@SimpleField(size = 2, sign = Sign.UNSIGNED)
	private int start;

	@SimpleField(size = 2, sign = Sign.UNSIGNED)
	private int stop;
	
	public ED() {
		
	}

	public int getFlags() {
		return flags;
	}

	public void setFlags(int flags) {
		this.flags = flags;
	}

	public long getTimestamp() {
		return timestamp;
	}

	public void setTimestamp(long timestamp) {
		this.timestamp = timestamp;
	}

	public int getSamples() {
		return samples;
	}

	public void setSamples(int samples) {
		this.samples = samples;
	}

	public int getMagnitudeX() {
		return magnitudeX;
	}

	public void setMagnitudeX(int magnitudeX) {
		this.magnitudeX = magnitudeX;
	}

	public int getMagnitudeY() {
		return magnitudeY;
	}

	public void setMagnitudeY(int magnitudeY) {
		this.magnitudeY = magnitudeY;
	}

	public int getMagnitudeZ() {
		return magnitudeZ;
	}

	public void setMagnitudeZ(int magnitudeZ) {
		this.magnitudeZ = magnitudeZ;
	}

	public int getPeakX() {
		return peakX;
	}

	public void setPeakX(int peakX) {
		this.peakX = peakX;
	}

	public int getPeakY() {
		return peakY;
	}

	public void setPeakY(int peakY) {
		this.peakY = peakY;
	}

	public int getPeakZ() {
		return peakZ;
	}

	public void setPeakZ(int peakZ) {
		this.peakZ = peakZ;
	}

	public int getNoiseX() {
		return noiseX;
	}

	public void setNoiseX(int noiseX) {
		this.noiseX = noiseX;
	}

	public int getNoiseY() {
		return noiseY;
	}

	public void setNoiseY(int noiseY) {
		this.noiseY = noiseY;
	}

	public int getNoiseZ() {
		return noiseZ;
	}

	public void setNoiseZ(int noiseZ) {
		this.noiseZ = noiseZ;
	}

	public int getStart() {
		return start;
	}

	public void setStart(int start) {
		this.start = start;
	}

	public int getStop() {
		return stop;
	}

	public void setStop(int stop) {
		this.stop = stop;
	}
}
